<div class="layui-side layui-side-menu">
    <div class="layui-side-scroll">
        <div class="layui-logo" lay-href="home/console.html">
            <span>后台管理系统</span>
        </div>
        <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
            <?php foreach($menu as $k=>$v){  ?>
               <li data-name="template" class="layui-nav-item <?php if(isset($v['current'])) echo 'layui-nav-itemed';  ?>">
                    <a href="javascript:;" lay-tips="" lay-direction="2">
                        <i class="layui-icon layui-icon-home"></i>
                        <cite>{$v.title}</cite>
                    </a>
                    <dl class="layui-nav-child">
                        <?php foreach($v['children'] as $key=>$val){ ?>
                            <dd class="<?php if(isset($val['current'])){echo 'layui-this';} ?>">
                                <a href="<?php echo $val['name']?>"><?php echo $val['title']?></a>
                            </dd>
                        <?php } ?>
                    </dl>
                </li>
           <?php  }  ?>

        </ul>
    </div>
</div>